package com.jwsoft.manager.common.enums;

public enum MbTcTypeEnum {
    fhgb("1", "民办退出返回公办"),
    mbtc("2", "仅民办退出");

    private String type;
    private String name;

    private MbTcTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static MbTcTypeEnum getByType(String type) {
        for (MbTcTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
